package com.wedimob.slideshare.bo;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import com.wedimob.slideshare.parser.annotation.Factory;
import com.wedimob.slideshare.parser.annotation.HTMLMapping;
import com.wedimob.slideshare.source.SlideShareStrategy;

@HTMLMapping(url = SlideShareStrategy.SEARCH_PATTERN, tag = "li.clearfix")
public class Authors extends Container<Author> {

    /**
	 * 
	 */
    private static final long serialVersionUID = -5743923283809425487L;

    public static void main(String[] args) throws IOException {
        Document doc = Jsoup.connect("http://fr.slideshare.net/search/user?searchfrom=header&q=test").get();
        Authors authors = Factory.fromDocument(doc, Authors.class, null);
        System.out.println(authors);
    }

}
